Optimal. Leaf size=39 \[ \frac{a^2}{2 d (a-a \sin (c+d x))}+\frac{a \tanh ^{-1}(\sin (c+d x))}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0417776, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {2667, 44, 206} \[ \frac{a^2}{2 d (a-a \sin (c+d x))}+\frac{a \tanh ^{-1}(\sin (c+d x))}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2667
Rule 44
Rule 206
Rubi steps
\begin{align*} \int \sec ^3(c+d x) (a+a \sin (c+d x)) \, dx &=\frac{a^3 \operatorname{Subst}\left (\int \frac{1}{(a-x)^2 (a+x)} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac{a^3 \operatorname{Subst}\left (\int \left (\frac{1}{2 a (a-x)^2}+\frac{1}{2 a \left (a^2-x^2\right )}\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac{a^2}{2 d (a-a \sin (c+d x))}+\frac{a^2 \operatorname{Subst}\left (\int \frac{1}{a^2-x^2} \, dx,x,a \sin (c+d x)\right )}{2 d}\\ &=\frac{a \tanh ^{-1}(\sin (c+d x))}{2 d}+\frac{a^2}{2 d (a-a \sin (c+d x))}\\ \end{align*}
Mathematica [A] time = 0.0175316, size = 52, normalized size = 1.33 \[ \frac{a \sec ^2(c+d x)}{2 d}+\frac{a \tanh ^{-1}(\sin (c+d x))}{2 d}+\frac{a \tan (c+d x) \sec (c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.082, size = 54, normalized size = 1.4 \begin{align*}{\frac{a}{2\,d \left ( \cos \left ( dx+c \right ) \right ) ^{2}}}+{\frac{a\sec \left ( dx+c \right ) \tan \left ( dx+c \right ) }{2\,d}}+{\frac{a\ln \left ( \sec \left ( dx+c \right ) +\tan \left ( dx+c \right ) \right ) }{2\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.945554, size = 57, normalized size = 1.46 \begin{align*} \frac{a \log \left (\sin \left (d x + c\right ) + 1\right ) - a \log \left (\sin \left (d x + c\right ) - 1\right ) - \frac{2 \, a}{\sin \left (d x + c\right ) - 1}}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.77265, size = 166, normalized size = 4.26 \begin{align*} \frac{{\left (a \sin \left (d x + c\right ) - a\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) -{\left (a \sin \left (d x + c\right ) - a\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) - 2 \, a}{4 \,{\left (d \sin \left (d x + c\right ) - d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a \left (\int \sin{\left (c + d x \right )} \sec ^{3}{\left (c + d x \right )}\, dx + \int \sec ^{3}{\left (c + d x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20889, size = 73, normalized size = 1.87 \begin{align*} \frac{a \log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right ) - a \log \left ({\left | \sin \left (d x + c\right ) - 1 \right |}\right ) + \frac{a \sin \left (d x + c\right ) - 3 \, a}{\sin \left (d x + c\right ) - 1}}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]